package com.course.dao;

import com.course.model.CourseVieData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseVieDataDao {


    List<CourseVieData> findVieCourseData(@Param("nowTime") long nowTime);

    Integer getApplyNumByCourseId(@Param("courseId")Integer courseId);

    void reduceApplyNum(@Param("courseId")Integer courseId, @Param("applyNum")Integer apply_num);
}
